import { createRouter, createWebHashHistory } from 'vue-router'
import Login from '@/pages/login/index.vue'
import Layouts from '@/layouts/index.vue'
import Home from '@/pages/home/index.vue'

const routes: any[] = [
    {
        path: "/",
        component: Login
    },
    {
        path: "/web",
        component: Layouts,
        children: [
            {
                path: "/web",
                redirect: '/home',
            },
            {
                path: "/home",
                name: "home",
                component: Home,
            },
        ]
    },
]


const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
